Skip to content

fix(cluster): release forbidden slot range on CLUSTER RESET#3545

Merged
git-hulk merged 1 commit into
apache:unstablefrom
git-hulk:fix-forbidden-slot-after-reset
Jul 6, 2026
Merged

fix(cluster): release forbidden slot range on CLUSTER RESET#3545
git-hulk merged 1 commit into
apache:unstablefrom
git-hulk:fix-forbidden-slot-after-reset

Conversation

@git-hulk

@git-hulk git-hulk commented Jul 5, 2026

Copy link
Copy Markdown
Member

After a slot has been migrated away, the source node keeps forbidden_slot_range_ set. That is normally harmless because the topology no longer routes the slot to this node, so the forbidden-slot check is never reached. But CLUSTER RESET clears the topology while leaving the migrator's forbidden range intact — a subsequent SETNODES that reassigns the slot back to this node then spuriously rejects writes with TRYAGAIN Can't write to slot being migrated. Explicitly release the forbidden slot range in Cluster::Reset to fix this.

Assistant-By: Claude Opus 4.7

After a slot has been migrated away, the source node keeps
`forbidden_slot_range_` set. That is normally harmless because the
topology no longer routes the slot to this node, so the forbidden-slot
check is never reached. But `CLUSTER RESET` clears the topology while
leaving the migrator's forbidden range intact — a subsequent SETNODES
that reassigns the slot back to this node then spuriously rejects
writes with `TRYAGAIN Can't write to slot being migrated`. Explicitly
release the forbidden slot range in `Cluster::Reset` to fix this.

Assistant-By: Claude Opus 4.7
@sonarqubecloud

sonarqubecloud Bot commented Jul 6, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 50%)

See analysis details on SonarQube Cloud

@git-hulk git-hulk merged commit 8830e26 into apache:unstable Jul 6, 2026
72 of 75 checks passed
@git-hulk git-hulk deleted the fix-forbidden-slot-after-reset branch July 6, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants